package com.haiqi.common.persistence.dao;

import com.haiqi.common.persistence.entity.ShipFollow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by liuxiayan on 2017/5/12.
 */
public interface ShipFollowMapper {
    public boolean addship(ShipFollow shipFollow);
    public ShipFollow selectFollow (Integer sfid);

    public boolean updateByPrimaryKeySelective(ShipFollow shipFollow);
    public ShipFollow findBymmsiAndGuanid(@Param(value = "mmsi") String mmsi, @Param(value = "guanid")Integer guanid);
    public List<ShipFollow> findByGuanId(Integer id);

    public List<ShipFollow> select(ShipFollow shipFollow);
    public boolean deleteGZ(Integer guanid);
    public boolean deleteById(Integer sfid);
    public ShipFollow findByMmsi(String mmsi);

}
